package com.fenqing.leetcode.code.t1600_1700;

import com.fenqing.annotations.Execute;
import com.fenqing.core.Topic;

public class Topic1689 extends Topic {

    @Execute
    public int minPartitions(String n) {
        char max = 0;
        char[] chars = n.toCharArray();
        for (char aChar : chars) {
            if (max < aChar) {
                max = aChar;
            }
        }
        return max - '0';
    }

    public static void main(String[] args) {
        Topic1689 topic1689 = new Topic1689();
        int run = topic1689.run("32");
        System.out.println(run);
    }
}
